import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:sleep/model/chat/chat_model.dart';
import 'package:sleep/config.dart';

class ChatConfig {
  final ChatModel sleepChat;
  final ChatModel pulseChat;
  final ChatModel fatigueChat;

  ChatConfig({
    required this.sleepChat,
    required this.pulseChat,
    required this.fatigueChat,
  });

  static defalut() {
    final sleepChat = ChatModel(
      maxX: kPointKLength.toDouble(),
      minX: 0.0,
      maxY: 0.5,
      minY: -0.5,
      mimResolution: 0.1,
    );

    final fatigueChat = ChatModel(
      maxX: kPointKLength.toDouble(),
      minX: 0.0,
      maxY: 0.5,
      minY: -0.5,
      mimResolution: 0.1,
    );

    final pulseChat = ChatModel(
      maxX: kPointKLength.toDouble(),
      minX: 0.0,
      maxY: 0.5,
      minY: -0.5,
      mimResolution: 0.1,
    );
    return ChatConfig(
      sleepChat: sleepChat,
      fatigueChat: fatigueChat,
      pulseChat: pulseChat,
    );
  }
}

final chatConfigProvider = Provider<ChatConfig>((ref) => ChatConfig.defalut());
